<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$config.title}</title>
<link rel="stylesheet" type="text/css" href="/static/css/swiper-bundle.min.css"/>
<link rel="stylesheet" type="text/css" href="/static/css/animate.css"/>
<link rel="stylesheet" type="text/css" href="/static/css/css.css?v=0.0.4"/>
<link rel="stylesheet" type="text/css" href="/static/css/other.css?v=0.0.2"/>
<script type="text/javascript" src="/static/js/jq-1.11.3.min.js"></script>
<script type="text/javascript" src="/static/js/swiper-bundle.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.SuperSlide.2.1.1.js"></script>
<script type="text/javascript" src="/static/js/autosize.js"></script>
<script type="text/javascript" src="/static/js/animate.js"></script>
</head>
<body>
<!--PC端头部开始-->
<div class="head clear">
  <div class="head-fixed">
    <div class="w">
      <a href="/" class="logo"><img src="{$config.logo}" ></a>
      <ul class="nav comflex">
		{volist name="nav_list" id="vo"}
        <li>
          <div class="plebans"><a href="{:url('cate/index',['cid'=>$vo['id']])}">{$vo.title}</a></div>
		  <!-- {empty name="vo['sub']"}
		   <div class="goutp">
			{sp:articles cid="$vo['id']" id="vo1" field='a_id,title' order="sort asc,a_id asc"}
            <p><a href="{:url('article/info',['id'=>$vo1['a_id']])}">{$vo1.title}</a></p>
			{/sp:articles}
          </div>
		  {else/}
          <div class="goutp">
			{if condition="$vo['type'] eq 2 or $vo['type'] eq 1"}
			{volist name="vo['sub']" id="vo1"}
            <p><a href="{:url('cate/index',['cid'=>$vo1['id']])}">{$vo1.title}</a></p>
			{/volist}
			{else/}
			{volist name="vo['sub']" id="vo1"}
            <p><a href="{:url('cate/index',['cid'=>$vo['id']])}#{$vo1['id']}">{$vo1.title}</a></p>
			{/volist}
			{/if}
          </div>
		  {/empty} -->
        </li>
        {/volist}
        
      </ul>
      <div class="search_pop">
        <div class="search comflex1"><input type="text" class="s_intxt" placeholder="Search……" /><input class="s_inbut" type="button" value="Search" /></div>
      </div>
      <div class="search_ico"></div>
      <div class="tell">{$config.tel}</div>
    </div>
  </div>
</div>
<!--PC端头部结束-->
<!--移动端头部开始-->
<div class="sjhedes">
  <div class="tuerhed">
    <a href="index.html" class="losdj"><img src="/static/images/logo.png" ></a>
    <div class="search comflex1"><input type="text" class="s_intxt" placeholder="Search……" /><input class="s_inbut" type="button" value="Search" /></div>
    <div class="sanh">
      <div></div>
      <div></div>
      <div></div>
    </div>
    <div class="clear0"></div>
  </div>
</div>
<div class="fuernavt">
  <div class="benrvav">
    <div>
      <div class="shojvas">
		{volist name="nav_list" id="vo"}
        <div class="showzhen">
          <div class="jd"></div>
          <p class="maei"><a href="{:url('cate/index',['cid'=>$vo['id']])}">{$vo.title}</a></p>
          <div class="shopernc">
            <div>
			{empty name="vo['sub']"}
				{sp:articles cid="$vo['id']" id="vo1" field='a_id,title' order="sort asc,a_id asc"}
					<a href="{:url('article/info',['id'=>$vo1['a_id']])}">{$vo1.title}</a>
				{/sp:articles}
			{else/}
				{if condition="$vo['type'] eq 2 or $vo['type'] eq 1"}
					{volist name="vo['sub']" id="vo1"}
						<a href="{:url('cate/index',['cid'=>$vo1['id']])}">{$vo1.title}</a>
					{/volist}
				{else/}
					{volist name="vo['sub']" id="vo1"}
						<a href="{:url('cate/index',['cid'=>$vo['id']])}#{$vo1['id']}">{$vo1.title}</a>
					{/volist}
				{/if}
			{/empty}
            </div>
          </div>
        </div>
		{/volist}
         
        
      </div>
    </div>
  </div>
</div>
<!--移动端头部结束-->

<script>
$(".s_inbut").click(function(){
  var s_intxt = $(this).prev(".s_intxt").val();
  if(s_intxt == '' || s_intxt == null){
     alert('Please input content ');
     return false;
  }
  var url = "{:url('index/search')}";
  window.location.href = url+'?kw='+s_intxt;

})

$(".s_intxt").bind('keypress', function (event) {
    //  获取用户输入框中的值
    let s_intxt = $(".s_intxt").val();
    //  当键码的值为13时也就意味着是回车，执行控制层方法
    if (event.keyCode == '13') {
        if(s_intxt == '' || s_intxt == null){
			alert('Please input content');
			return false;
		}
		var url = "{:url('index/search')}";
		window.location.href = url+'?kw='+s_intxt;
    }
})
</script>